
<?php
$NoTrans=array('></embed>');
$Trans=array('wmode="transparent"></embed>');
?>

<ul id="slider">

<?php
$reqLigne2=mysql_query("SELECT * FROM actualites WHERE MiseEnLigneActu='oui' AND Annee='$Year' ORDER BY Annee , Mois , Jour ") or die(mysql_error());
//START BOUCLE------------
while($row2=mysql_fetch_array($reqLigne2)){
	$idActu=$row2['idActu'];
	$ImageGarde=$row2['ImageGarde'];
	$BGActu=$row2['BGActu'];
	$TextArtG=$row2['TextArtG'];
	$TextArtD=$row2['TextArtD'];
	$LinkVideo=$row2['LinkVideo'];
	$FB=$row2['FB'];
	$Digi=$row2['Digi'];
	$Jour=$row2['Jour'];
	$Mois1=$row2['Mois'];
	$Mois=str_replace($NumMois, $LetterMois, $row2['Mois']);
	$NomJour=$row2['NomJour'];
	?>
	<div class="Contain" style="width:100%; ">
		<li style="background-color:<?php echo $BGActu; ?>; <?php //echo 'width:'.$Size.'px'; ?>width: 100%; float: left; margin-right: -100%; display: list-item;">
		
		<div class="Image" style="background-image:url(./imagesBGEvents/<?php echo $ImageGarde; ?>);">
			<?php
				if(!empty($FB)){ ?>
				<div class="FBEvent"><a href="<?php echo $FB; ?>" target="_blank"><img src="./images/FBEvent.png" alt="Facebook"></a></div>
				<?php }
				
				 ?>
			
			<div class="Artistes">
				 <div class="ArtG"><?php echo $TextArtG; ?></div> 
				 <div class="ArtD"><?php echo $TextArtD; ?></div> 
				 <div class="clr"></div>
			</div>
			<?php if($MoisN==$Mois1 && $JourN<$Jour){ ?>
			<?php
			if(!empty($Digi)){ ?>
			<div class="Digi"><a href="<?php echo $Digi; ?>" target="_blank"><img src="./images/Digitick.png" alt="Preventes sur DIGITICK"></a></div>
			<?php } 
			}
			?>
		</div>
		
		
		<?php
		if(!empty($LinkVideo)){ ?>
		
		<div class="Video">
			<div class="SeparatorV"><img src="./images/Separator.png"></div>
			<div class="LecteurVideo">
			<div class="ArrowVideo" style="display:none;"><img src="./images/ArrowVideo.png"></div>
			<?php echo str_replace($NoTrans, $Trans, $LinkVideo); ?>
			</div>
			<div class="ContentLiens">
			<div class="Voir"><a href="index.php?page=Videos&Year=<?php echo $Year; ?>&lang=<?php echo $lang; ?>" style="cursor:pointer;"><img src="./images/VoirVideo.png"></a></div><div class="Aime"><img src="./images/Aime.png"></div><div class="clr"></div>
			</div>
		</div>
		
		<?php 
		}
		$verifPhotos=mysql_query("SELECT idActu FROM photosactu  WHERE idActu='$idActu'") or die (mysql_error());
		$nbverifPhotos=mysql_num_rows($verifPhotos);
		//echo $nbverifPhotos;
			if($nbverifPhotos>0){
			
			include('app/Photos.php'); 
			
			}
		 ?>
		<a name="video"></a>
		<?php
		if(!empty($LinkVideo) && $nbverifPhotos>0){
		?>
		<div class="Logo"><img src="images/Logo.png"></div>
		<?php } ?>
		
		</li>
		
	</div>
	<?php
	}
	//END BOUCLE----------
?>

</ul>
